<template>
  <div class="header">
    <div class="logo"></div>
    <div class="login">
      <div class="login_box">
        <div class="lg">
          <router-link to="/login">
            <span>登录</span>
          </router-link>
          <span class="line">|</span>
          <router-link to="/reg">
            <span>注册</span>
          </router-link>
        </div>
        <div class="select">
          <el-button size="mini" icon="el-icon-tickets">控制中心</el-button>
          <el-button size="mini" icon="el-icon-caret-bottom"></el-button>
        </div>
      </div>
      <div class="line"></div>
      <div class="search_box">
        <i class="el-icon-search"></i>
        <i class="el-icon-goods"></i>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Header"
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
@import "../assets/css/index.scss";
.header {
  background: $bg;
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  .logo {
    width: 130px;
    height: 30px;
    background: url(../assets/home/logo.png) no-repeat;
    background-size: 100% 100%;
  }
  .login {
    font-size: 14px;
    display: flex;
    align-items: center;
    color: $txt;
    .login_box {
      display: flex;
      align-items: center;
      .lg {
        margin: 0 15px;
        a {
          text-decoration: none;
          span {
            color: $txt;
          }
        }
        .line {
          width: 1px;
          height: 24px;
          margin: 0 10px;
        }
      }
      .select {
        margin: 0 15px;
      }
    }
    & > .line {
      width: 1px;
      height: 24px;
      background: rgba(177, 177, 177, 0.5);
      margin: 0 30px;
    }
    .search_box {
      padding-right: 30px;
      i {
        padding: 0 15px;
        font-weight: 900;
        font-size: 16px;
      }
    }
  }
}
</style>
<style lang="scss">
@import "../assets/css/index.scss";
.select .el-button {
  color: $txt;
}
.select .el-button:nth-of-type(2) {
  margin-left: 0px;
}
</style>
